﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="categorymanagement.aspx.cs" Inherits="Admin_categorymanagement" Title="作品类别管理" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:GridView ID="GridView1" CssClass="mytable" runat="server" PageSize="20" AllowPaging="true"
            AutoGenerateColumns="False" 
            onrowcommand="GridView1_RowCommand" >
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        类别名称：<asp:Label ID= "catalog" runat ="server" Text ='<%#CategoryHelper.CategoryConvert(Eval("CategoryName").ToString())%>' ></asp:Label>
                        类别描述：<asp:TextBox ID="tbCategoryDescription" runat="server" Text='<%#Eval("CategoryDescription") %>' TextMode="MultiLine" Rows="5" Width="500px"></asp:TextBox>
                        <asp:Button ID="btnUpdate" runat="server" Text="更新" CommandName="updateCategory" CommandArgument='<%#Eval("CategoryId") %>'/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
</asp:GridView>
</asp:Content>

